import request from './request'

// 分页查询历史记录列表
export function getHistoryPage(data) {
  return request({
    url: '/history/page',
    method: 'post',
    data
  })
}

// 获取历史记录详情
export function getHistoryDetail(id) {
  return request({
    url: `/history/${id}`,
    method: 'get'
  })
}

// 导出历史记录
export function exportHistory(data) {
  return request({
    url: '/history/export',
    method: 'post',
    data,
    responseType: 'blob'
  })
}